<template>
孙组件
  <div>
    {{car}}
  </div>
</template>

<script setup>
import {inject} from "vue";

const  car=inject("car")
</script>

<style scoped>

</style>